package br.com.jdobjs.core;

public class TargetInvocation {

	private String function;
	private Object targetObject;
	private InvocationStep step;

	public TargetInvocation(String function, Object targetObject,
			InvocationStep step) {
		super();
		this.function = function;
		this.targetObject = targetObject;
		this.step = step;
	}

	public InvocationStep getStep() {
		return step;
	}

	public void setStep(InvocationStep step) {
		this.step = step;
	}

	public String getFunction() {
		return function;
	}

	public Object getTargetObject() {
		return targetObject;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("TargetInvocation [Function: '");
		sb.append(function);
		sb.append("', Object: '");
		sb.append(targetObject);
		sb.append("', InvocationStep: '");
		sb.append(step);
		sb.append("']");
		return sb.toString();
	}
}
